.class public Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;
.super Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;
.source "NiceAppAboutUsActivity.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;,
        Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutAdapter;
    }
.end annotation


# static fields
.field private static final MAIL_POSITION:I = 0x7

.field private static final WEBSITE_POSITION:I = 0xa

.field private static final ZUIMEI_WEIXIN_ACCOUNT:I = 0x8


# instance fields
.field private mListView:Landroid/widget/ListView;


# direct methods
.method public constructor <init>()V
    .registers 1

    .prologue
    .line 36
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;-><init>()V

    .line 215
    return-void
.end method

.method private convertNumToString(I)Ljava/lang/String;
    .registers 5
    .param p1, "num"    # I

    .prologue
    .line 139
    const/16 v1, 0xa

    if-ge p1, v1, :cond_18

    .line 140
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "0"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 144
    .local v0, "result":Ljava/lang/String;
    :goto_17
    return-object v0

    .line 142
    .end local v0    # "result":Ljava/lang/String;
    :cond_18
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .restart local v0    # "result":Ljava/lang/String;
    goto :goto_17
.end method

.method private generateAboutModels()Ljava/util/ArrayList;
    .registers 10
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/ArrayList",
            "<",
            "Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;",
            ">;"
        }
    .end annotation

    .prologue
    const/4 v8, 0x0

    .line 115
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 117
    .local v1, "aboutModels":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;>;"
    new-instance v5, Landroid/graphics/BitmapFactory$Options;

    invoke-direct {v5}, Landroid/graphics/BitmapFactory$Options;-><init>()V

    .line 118
    .local v5, "options":Landroid/graphics/BitmapFactory$Options;
    const/4 v6, 0x1

    iput-boolean v6, v5, Landroid/graphics/BitmapFactory$Options;->inJustDecodeBounds:Z

    .line 120
    invoke-virtual {p0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v2

    .line 121
    .local v2, "assetManager":Landroid/content/res/AssetManager;
    const/4 v4, 0x1

    .local v4, "i":I
    :goto_13
    const/16 v6, 0xa

    if-gt v4, v6, :cond_79

    .line 122
    new-instance v0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;

    invoke-direct {v0, p0, v8}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;-><init>(Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$1;)V

    .line 124
    .local v0, "about":Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;
    :try_start_1c
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "images/aboutus_"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-direct {p0, v4}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->convertNumToString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, ".jpg"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v2, v6}, Landroid/content/res/AssetManager;->open(Ljava/lang/String;)Ljava/io/InputStream;

    move-result-object v6

    const/4 v7, 0x0

    invoke-static {v6, v7, v5}, Landroid/graphics/BitmapFactory;->decodeStream(Ljava/io/InputStream;Landroid/graphics/Rect;Landroid/graphics/BitmapFactory$Options;)Landroid/graphics/Bitmap;
    :try_end_41
    .catch Ljava/io/IOException; {:try_start_1c .. :try_end_41} :catch_74

    .line 128
    :goto_41
    iget v6, v5, Landroid/graphics/BitmapFactory$Options;->outWidth:I

    iput v6, v0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;->width:I

    .line 129
    iget v6, v5, Landroid/graphics/BitmapFactory$Options;->outHeight:I

    iput v6, v0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;->height:I

    .line 130
    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "assets://"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "images/aboutus_"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-direct {p0, v4}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->convertNumToString(I)Ljava/lang/String;

    move-result-object v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, ".jpg"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    iput-object v6, v0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;->imageUrl:Ljava/lang/String;

    .line 132
    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 121
    add-int/lit8 v4, v4, 0x1

    goto :goto_13

    .line 125
    :catch_74
    move-exception v3

    .line 126
    .local v3, "e":Ljava/io/IOException;
    invoke-virtual {v3}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_41

    .line 134
    .end local v0    # "about":Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutModel;
    .end local v3    # "e":Ljava/io/IOException;
    :cond_79
    return-object v1
.end method

.method private initWidgets()V
    .registers 3

    .prologue
    .line 68
    const v1, 0x7f0c0001

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->setTopTitle(I)V

    .line 69
    const v1, 0x7f0c0037

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->setBackText(I)V

    .line 70
    const/16 v1, 0x8

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->setCommitBtnVisibility(I)V

    .line 72
    const v1, 0x7f0a002b

    invoke-virtual {p0, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ListView;

    iput-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->mListView:Landroid/widget/ListView;

    .line 73
    new-instance v0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutAdapter;

    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->generateAboutModels()Ljava/util/ArrayList;

    move-result-object v1

    invoke-direct {v0, p0, p0, v1}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutAdapter;-><init>(Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;Landroid/content/Context;Ljava/util/ArrayList;)V

    .line 74
    .local v0, "adapter":Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$AboutAdapter;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->mListView:Landroid/widget/ListView;

    invoke-virtual {v1, v0}, Landroid/widget/ListView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 75
    return-void
.end method

.method private initWidgetsActions()V
    .registers 3

    .prologue
    .line 78
    new-instance v0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$1;

    invoke-direct {v0, p0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$1;-><init>(Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;)V

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->setOnBackClickListener(Landroid/view/View$OnClickListener;)V

    .line 86
    iget-object v0, p0, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->mListView:Landroid/widget/ListView;

    new-instance v1, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;

    invoke-direct {v1, p0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity$2;-><init>(Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;)V

    invoke-virtual {v0, v1}, Landroid/widget/ListView;->setOnItemClickListener(Landroid/widget/AdapterView$OnItemClickListener;)V

    .line 112
    return-void
.end method


# virtual methods
.method protected onCreate(Landroid/os/Bundle;)V
    .registers 3
    .param p1, "bundle"    # Landroid/os/Bundle;

    .prologue
    .line 46
    invoke-super {p0, p1}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onCreate(Landroid/os/Bundle;)V

    .line 47
    const/high16 v0, 0x7f030000

    invoke-virtual {p0, v0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->setContentView(I)V

    .line 49
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->initWidgets()V

    .line 50
    invoke-direct {p0}, Lcom/brixd/niceapp/activity/NiceAppAboutUsActivity;->initWidgetsActions()V

    .line 51
    return-void
.end method

.method protected onPause()V
    .registers 2

    .prologue
    .line 62
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onPause()V

    .line 63
    const-string v0, "NiceAppAboutUsActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageEnd(Ljava/lang/String;)V

    .line 64
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onPause(Landroid/content/Context;)V

    .line 65
    return-void
.end method

.method protected onResume()V
    .registers 2

    .prologue
    .line 55
    invoke-super {p0}, Lcom/brixd/niceapp/activity/AbsActionBarSwipeBackActivity;->onResume()V

    .line 56
    const-string v0, "NiceAppAboutUsActivity"

    invoke-static {v0}, Lcom/umeng/analytics/MobclickAgent;->onPageStart(Ljava/lang/String;)V

    .line 57
    invoke-static {p0}, Lcom/umeng/analytics/MobclickAgent;->onResume(Landroid/content/Context;)V

    .line 58
    return-void
.end method
